﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using CommDll;

namespace SupervisionCodeCollection
{
    /// <summary>
    /// ClassName:frmPasswordChange
    /// Version:1.0
    /// Date:2019-05-23
    /// Author:seanouyang
    /// </summary>
    /// <remarks>
    /// 本类是一WinForm 窗体,本窗体主要为实现库房确定
    /// </remarks>    
    public partial class frmGoodsBatchCodeConfirm : DevComponents.DotNetBar.OfficeForm
    {
        #region 01.自定义属性
        public int m_nKind = 1; // 1:盘点
        public DataTable m_dt = null;
        public string m_strInfo = ""; // 库房信息
        #endregion

        #region 02.自定义方法
        /// <summary>
        /// 初始化选择信息
        /// </summary>
        private void _initPharmacy()
        {
            FunctionComm._setInfoToCbb_Dt(cbbInfo, m_dt);
        }
        #endregion
        public frmGoodsBatchCodeConfirm()
        {
            InitializeComponent(); 
        }

        #region 03.系统事件方法

        private void frmStockPlaceConfirm_Load(object sender, EventArgs e)
        {
            _initPharmacy();
        }

        private void cbbStockPlace_DrawItem(object sender, DrawItemEventArgs e)
        {
            // 重绘使可以调整行距
            CommFun._cbbDrawItem(sender, e);
        }
        
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (cbbInfo.SelectedIndex >= 0) {
                m_strInfo = cbbInfo.Text.Trim();
                this.DialogResult = DialogResult.OK;
            }
        }

        private void btnReturn_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        #endregion

        
    }
}